import React, { Suspense } from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider } from "react-router-dom";
import Router from "./router/index"
import Store from "./store/index"
import { Provider } from "react-redux"
import 'antd/dist/antd.css';
import "./global/index.scss"

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <Provider store={Store}>
    <Suspense fallback={<h1>加载中...</h1>}>
      <RouterProvider router={Router} />
    </Suspense>
  </Provider>
)
